]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
timeLimitsManager: Fix a typo in a code comment
authorPhilip Withnall <pwithnall@gnome.org>
Thu, 28 Aug 2025 11:52:58 +0000 (12:52 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Sat, 13 Sep 2025 17:00:21 +0000 (19:00 +0200)
A ‘leap day’ is February 29th, and is not the same as a daylight savings
time transition day (when the clock goes forwards or backwards by an
hour).

Fix a thinko/typo in my code comment.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3853>
(cherry picked from commit 856a0ffe2848bb82c86862764275c24c4ac6ddc4)

js/misc/timeLimitsManager.js

index dd2ddc311ad27b456cd462692ffa7bbe04d5a832..79642b9debbe3f4432ce5cf881f00b88c198c068 100644 (file)
@@ -636,8 +636,9 @@ export const TimeLimitsManager = GObject.registerClass({
      * Get the Unix timestamp (in real seconds since the epoch) for the start of
      * today and the start of tomorrow.
      *
-     * To avoid problems due to 24:00-01:00 not existing on leap days,
-     * arbitrarily say that the day starts at 03:00.
+     * To avoid problems due to 01:00-02:00 not existing (or existing twice) on
+     * daylight savings time transition days, arbitrarily say that the day
+     * starts at 03:00.
      *
      * @param {number} nowSecs ‘Current’ time to calculate from.
      * @returns {number}